package uk.kammakjuj.smsanywhere;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

public class MessageCheckService extends Service {

	private static final String TAG = MessageCheckService.class.getSimpleName();

	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		Log.d(TAG, "onCreate called");
	}

	@Override
	public void onStart(Intent intent, int startId) {
		super.onStart(intent, startId);
		Log.d(TAG, "onStart called");

		// Inform dev that service is started
		Toast.makeText(getBaseContext(), "onStart called", Toast.LENGTH_LONG)
				.show();
	}

	@Override
	public void onDestroy() {
		super.onDestroy();
		Log.d(TAG, "onDestroy called");

		// Inform dev that service is destroyed
		Toast.makeText(getBaseContext(), "onDestroy called", Toast.LENGTH_LONG)
				.show();
	}

}
